Component({
  data: {
    timerId: null
  },
  properties: {},
  methods: {
    startTimer: function () {
      var timerId = setTimeout((parmas) => {
        console.log(parmas);
      }, 5000, [1, 2, 3]);
      this.data.timerId = timerId;
      console.log("运行定时器：timerId =" + timerId);
    },
    clearTimeout: function () {
      const that = this;
      clearTimeout(that.data.timerId);
      console.log("清除定时器：timerId =" + that.data.timerId);
    }
  }
})